package com.csc.mapper;

import com.csc.entity.EmployeeAttendance;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
* @author 30978
* @description 针对表【employee_attendance(员工考勤记录表)】的数据库操作Mapper
* @createDate 2025-05-30 08:39:02
* @Entity com.csc.entity.EmployeeAttendance
*/
public interface EmployeeAttendanceMapper {

    int deleteByPrimaryKey(Long id);

    int insert(EmployeeAttendance record);

    int insertSelective(EmployeeAttendance record);

    EmployeeAttendance selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(EmployeeAttendance record);

    int updateByPrimaryKey(EmployeeAttendance record);

    //考勤次数统计
    List<Map<String, Object>> selectAttendanceCount();

    //删除离职员工考勤
    int deleteAttendanceByInactiveEmployees();
}
